package ch5;

public class Zxf13 {
    public static void main(String[] args) {
      int a=100;
       // int b=a%10;
        //int c=(a/10)%10;
       // int d=a/100;
       int e=0;
        while (a<=999){
                int b=a%10;
                int c=(a/10)%10;
                int d=a/100;
                if (a==b*b*b+c*c*c+d*d*d){
                e = a;
                System.out.print("水仙数：" + e);
            }a++;
        }
    }
}
